﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IEditModeBehavior.h"
#include "GbmpQuickCast.h"
#include "IEditMode.h"                                                         
#include "GmModelFamily.h"

namespace gfam
{
    /// \brief 放样体编辑模式的接口类
    class GCMP_MODEL_FAMILY_EXPORT ISweepEditModeBehavior : public gcmp::IEditModeBehavior
    {
        DEFINE_CAST_DERIVED(gfam::ISweepEditModeBehavior, gcmp::IEditModeBehavior)
    public:
        /// \brief 析构函数
        virtual ~ISweepEditModeBehavior() {};

        /// \brief 创建放样体编辑模式
        ///
        /// \param pDocument 文档指针
        /// \return nullptr-创建失败；非nullptr-创建成功
        static gcmp::IEditMode* Create(gcmp::IDocument* pDocument);

    public:
        /// \brief 获取是否是创建过程
        ///
        /// \return true-当前为创建过程；false-当前为编辑过程
        virtual bool IsCreating() const = 0;

    };
}